<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Box_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-box_name" data-rule="required" class="form-control" name="row[box_name]" type="text" value="{$row.box_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lablename')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-lable" class="form-control selectpicker" name="row[lable]">
                {foreach name="lableList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.lable"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Catename')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-catename" class="form-control selectpicker" name="row[catename]">
                {foreach name="cateList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.catename"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group prize-status hide" >
        <label class="control-label col-xs-12 col-sm-2">{:__('Prize_id')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-prize-id" class="form-control selectpicker" name="row[prize_id]">
                <option value="" >请选择</option>
                {foreach name="mhgoods" item="vo"}
                    <option value="{$vo.id}" {in name="$vo.id" value="$row.prize_id"}selected{/in} >{$vo.goods_name}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Box_thumb_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-box_thumb_image" class="form-control" size="50" name="row[box_thumb_image]" type="textarea" value="{$row.box_thumb_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-box_thumb_image" class="btn btn-danger faupload" data-input-id="c-box_thumb_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-box_thumb_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-box_thumb_image" class="btn btn-primary fachoose" data-input-id="c-box_thumb_image" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-box_thumb_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-box_thumb_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Box_banner_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-box_banner_images" class="form-control" size="50" name="row[box_banner_images]" type="textarea" value="{$row.box_banner_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-box_banner_images" class="btn btn-danger faupload" data-input-id="c-box_banner_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-box_banner_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-box_banner_images" class="btn btn-primary fachoose" data-input-id="c-box_banner_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-box_banner_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-box_banner_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Box_foot_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-box_foot_images" class="form-control" size="50" name="row[box_foot_images]" type="textarea" value="{$row.box_foot_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-box_foot_images" class="btn btn-danger faupload" data-input-id="c-box_foot_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-box_foot_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-box_foot_images" class="btn btn-primary fachoose" data-input-id="c-box_foot_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-box_foot_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-box_foot_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Box_label')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-box_label" class="form-control" name="row[box_label]" type="text" value="{$row.box_label|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Probability_gj')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-probability_gj" data-rule="required" class="form-control" name="row[probability_gj]" type="number" value="{$row.probability_gj|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Probability_xy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-probability_xy" data-rule="required" class="form-control" name="row[probability_xy]" type="number" value="{$row.probability_xy|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Probability_ss')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-probability_ss" data-rule="required" class="form-control" name="row[probability_ss]" type="number" value="{$row.probability_ss|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Probability_cs')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-probability_cs" data-rule="required" class="form-control" name="row[probability_cs]" type="number" value="{$row.probability_cs|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Boxswitch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-boxswitch" data-rule="required" class="form-control" name="row[boxswitch]" type="number" value="{$row.boxswitch|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Single_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-single_switch" data-rule="required" class="form-control" name="row[single_switch]" type="number" value="{$row.single_switch|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>

    <div class="form-group" id="div-group-id">
        <label class="control-label col-xs-12 col-sm-2">{:__('Must_goods')}:</label>
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-must_goods" data-rule="nullable" data-source="boxfl/getmhgoods" data-multiple="true"  data-params='{"custom[id]":"","custom[must_goods]":"1"}' class="form-control selectpage" name="row[must_goods]" type="text" value="{$row.must_goods}">-->
<!--        </div>-->
            <div class="col-xs-12 col-sm-8">
                {:build_select('must_goods[]', $goodsdata, $goodIds, ['class'=>'form-control selectpicker', 'multiple'=>'', 'data-rule'=>'nullable'])}
            </div>
    </div>

    <input id="c-id"  name="row[id]" type="hidden" value="{$row.id|htmlentities}">




    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
